import request from '@/utils/request'

// 查询面试流程列表
export function listProcess(query) {
  return request({
    // url: '/system/process/list',
    url: '/process/list',

    method: 'get',
    params: query
  })
}

// 查询面试流程详细
export function getProcess(id) {
  return request({
    // url: '/system/process/' + id,
    url: '/process/' + id,

    method: 'get'
  })
}

// 新增面试流程
export function addProcess(data) {
  return request({
    // url: '/system/process',
    url: '/process',

    method: 'post',
    data: data
  })
}

// 修改面试流程
export function updateProcess(data) {
  return request({
    // url: '/system/process',
    url: '/process',
    method: 'put',
    data: data
  })
}

// 删除面试流程
export function delProcess(ids) {
  return request({
    // url: '/system/process/' + id,
    url: '/process/' + ids,

    method: 'delete'
  })
}

// 导出面试流程
export function exportProcess(query) {
  return request({
    // url: '/system/process/export',
    url: '/process/export',
    method: 'get',
    params: query
  })
}